define.template({
    type: 'Section',
    src: 'hello/template/form?id=$myId',
    node: {
        type: 'Form',
        nodes: [
            {type: 'Text', name: 'userName', label: {text: '姓名'}, '@value': '$data.userName'},
            {type: 'Text', name: 'orgName', label: {text: '班级'}, '@value': '$data.orgName'},
            {
                type: 'RadioGroup', name: 'gender', label: {text: '性别'}, '@value': '$data.gender',
                nodes: [
                    {value: '1', text: '男', '@w-if': '$data.gender=="1"'},
                    {value: '2', text: '女', '@w-else': ''}
                ]
            },
            {type: 'DatePicker', name: 'birthday', label: {text: '生日'}, '@value': '$data.birthday', '@display': '$data.gender=="1"'},
            {type: 'Textarea', name: 'resume', label: {text: '个人简历'}, '@value': '$data.resume', '@display': '$data.gender=="2"'},
        ]
    }
});